import pygame
import xlrd

class MusicPlayer(object):
    instance = None

    init_flag = False

    def __new__(cls, *args, **kwargs):
        print("new")
        if cls.instance is None:
            cls.instance = super().__new__(cls)

        return cls.instance

    def __init__(self):
        if not MusicPlayer.init_flag:
            MusicPlayer.init_flag = True
            print("init")


aa = MusicPlayer()
print(aa)
bb = MusicPlayer()
print(bb)
